FROM ubuntu:v01

COPY requirements.txt /
COPY entrypoint.sh /

RUN pip3 install -r /requirement.txt

COPY app /server/
COPY common /server/
COPY mis /server/
COPY mp /server/

WORKDIR /server

ENV DB_NAME "flask_example"
ENV DB_USER "dev"
ENV DB_PASSWORD "dev@123"
ENV DB_HOST "10.211.55.4"
ENV REDIS_HOST "10.211.55.4"
ENV REDIS_PORT 6379
ENV APP_CONFIG "dev"


# 指定对外开放端口
EXPOSE 5000

CMD  /entrypoint.sh